package com.cwj.web.controller;

import common.entity.course;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/index")
public class indexController {
    @Resource
    com.cwj.service.index index;
    /**
     * 获取课程的大图 900x407
     */
    @PostMapping({"/course/cover/{count}"})
    public Map<String, course> GetCourseCoverPict(@PathVariable Integer count) throws Exception {
        return index.GetCourseCoverPict(count);
    }
}
